package com.alibaba.ai.controller;

import com.alibaba.ai.service.OrientationService;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

//@Controller
@RestController
@RequestMapping("/index3")
public class OrientationController {
//    @Resource
@Autowired
    private OrientationService orientationService;
    @ResponseBody
    public List<JSONObject> Orientation(){
         List<JSONObject> list=orientationService.getOrientation();
         return list;
    }
}
